<?php
namespace app\api\model;
use traits\model\SoftDelete;

class ProductOrderDetail extends Base
{
    use SoftDelete;
    // 设置当前模型的数据库连接
    public function tradeHall(){
        return $this->hasOne("TradeHall","id","hall_id")->bind(['position_code'=>'position_code']);
    }
    public function product(){
        return $this->hasOne("Product","id","product_id")->bind(['international_code'=>'international_code']);
    }
}